<template>
  <RouterView v-slot="{ Component, route }">
    <KeepAlive>
      <component :is="Component" :key="route.name" v-if="route.meta.keepAlive" />
    </KeepAlive>
    <component :is="Component" :key="route.name" v-if="!route.meta.keepAlive" />
  </RouterView>
</template>

<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import { onMounted, reactive, toRefs } from "vue";

</script>


<style lang="less">
@import "@pub/clear.less";
@import "@pub/reset.less";
</style>
